package net.oschina.archx.spring.sequoiadb;

import com.sequoiadb.base.Sequoiadb;

/**
 * SequoiaResourceManager
 *
 * @author Archx
 * @date 2015/7/1 0001
 */
public interface SequoiaResourceManagement {

    /**
     * 获取巨杉数据库实体
     *
     * @return
     * @throws InterruptedException
     */
    Sequoiadb getConnection() throws InterruptedException;

    /**
     * 释放链接
     *
     * @param conn
     */
    public void freeConnection(Sequoiadb conn);
}
